package com.testmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName b_comment
 */
@TableName(value ="b_comment")
@Data
public class Comment {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * 评论商品
     */
    @TableField(value = "goodsid")
    private String goodsid;

    /**
     * 评论人id
     */
    @TableField(value = "userid")
    private String userid;

    /**
     * 评论内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 评论日期
     */
    @TableField(value = "addate")
    private String addate;

    /**
     * 点赞数
     */
    @TableField(value = "agrees")
    private Integer agrees;

    /**
     * 上级评论
     */
    @TableField(value = "pid")
    private String pid;

    /**
     * 审核状态(1.待审核,2.审核通过,)
     */
    @TableField(value = "status")
    private Integer status;

    //回复的评论
    List<Comment> reply;

    //用户
    String user;



}